package com.calciominoBeta.GCM;

import android.app.Activity;
import android.os.Bundle;

import com.calciominoBeta.R;
import com.google.android.gcm.GCMRegistrar;

public class GCMMainActivity extends Activity {

	String TAG = "GCM Tutorial::Activity";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		GCMRegistrar.checkDevice(this);
		GCMRegistrar.checkManifest(this);
		GCMRegistrar.register(GCMMainActivity.this,
				GCMIntentService.SENDER_ID);

		// Register Device Button
//		Button regbtn = (Button) findViewById(R.id.register);
//
//		regbtn.setOnClickListener(new View.OnClickListener() {
//			@Override
//			public void onClick(View v) {
//				Log.i(TAG, "Registering device");
//				// Retrive the sender ID from GCMIntentService.java
//				// Sender ID will be registered into GCMRegistrar
//				
//			}
//		});
	}
}